package com.lifeonwalden.fincalc.utils.date.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.function.Function;

/**
 * 日期数据交集数据包
 */
public class DateIntersectionData<T> {
    private List<T> dataList;

    private List<T> resultList = new ArrayList<>();

    private Function<T, Date> dateFetcher;

    public List<T> getDataList() {
        return dataList;
    }

    public DateIntersectionData<T> setDataList(List<T> dataList) {
        this.dataList = dataList;
        return this;
    }

    public List<T> getResultList() {
        return resultList;
    }

    public DateIntersectionData<T> setResultList(List<T> resultList) {
        this.resultList = resultList;
        return this;
    }

    public Function<T, Date> getDateFetcher() {
        return dateFetcher;
    }

    public DateIntersectionData<T> setDateFetcher(Function<T, Date> dateFetcher) {
        this.dateFetcher = dateFetcher;
        return this;
    }
}
